package thinkinjava1.ch10;

import java.io.FileOutputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;

/**
 * Created by BobbyGu on 2017/2/24.
 */
public class FreezeAlien {
    static String baseDir = "src/thinkinjava1.ch10/file_dir/";

    public static void main(String[] args)
            throws Exception {
        ObjectOutput out =
                new ObjectOutputStream(
                        new FileOutputStream(baseDir + "file.x"));
        Alien zorcon = new Alien();
        out.writeObject(zorcon);
    }
}
